package com.actor;

/**
 * @author sad
 */
public class MessageWrapperFutureResponse extends MessageWrapper {

    private int futureTag = -1;
    private final Throwable error;

    public MessageWrapperFutureResponse(Object value, ActorRef sender, int futureTag, Throwable error) {
        super(value, sender);
        this.futureTag = futureTag;
        this.error = error;
    }

    public int getFutureTag() {
        return futureTag;
    }

    public Throwable getError() {
        return error;
    }

}
